#!/bin/bash

current_dir=$PWD
cd $1
find arkui -name BUILD.gn | xargs grep '#.*\".*:' | awk -F'[:"]' '{print $1 $3}' | sed 's|BUILD.gn|/|g' | xargs -i find {} -name BUILD.gn | xargs dirname | sed 's|//|/|g' | sort -u
cd ${current_dir}